﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Maxleaf.EDI.Admin.Models
{
    public class ResetPasswordModel
    {
        [Display(Name = "用户名：")]
        [Required(ErrorMessage = "×")]
        public string UserName { get; set; }

        [DataType(DataType.Password)]
        [Required(ErrorMessage = "×")]
        [Display(Name = "密码：")]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "确认密码：")]
        [Required(ErrorMessage = "×")]
        [Compare("Password", ErrorMessage = "×")]
        public string ConfirmPassword { get; set; }
    }
}